from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', 'thesaurus.views.index'),
    (r'^taxons/$', 'thesaurus.views.taxons'),
    (r'^taxons/(?P<id>\d+)', 'thesaurus.views.taxon'),
    
    (r'^words/$', 'thesaurus.views.words'),
    (r'^words/(?P<text>.+)', 'thesaurus.views.word'),
    
    (r'^meaning/(?P<id>\d+)', 'thesaurus.views.meaning'),
    
    (r'^works/$', 'thesaurus.views.works'),
    (r'^works/by-year/$', 'thesaurus.views.works_by_year'),
    (r'^works/code/(?P<code>.+)', 'thesaurus.views.work_by_code'),
    
    (r'^persons/(?P<name>.+)', 'thesaurus.views.person'),
    
    # Example:
    # (r'^tsvetaeva/', include('tsvetaeva.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
)
